﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchProduct.aspx.cs" Inherits="CanDoo.WebHost.Oil.selectSearch.SearchProduct" %>
<%@ Register Src="../UserControls/SelectProductType.ascx" TagPrefix="uc1" TagName="SelectProductType" %>
<%@ Register Src="../UserControls/SelectBrand.ascx" TagPrefix="uc1" TagName="SelectBrand" %>
<%@ Register Src="../UserControls/SelectSupplier.ascx" TagPrefix="uc1" TagName="SelectSupplier" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商品管理</title>
    <link href="/res/css/common.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManagerMain" AutoSizePanelID="PanelMain" runat="server" />
        <f:Panel ID="PanelMain" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false">
            <Items>
                <f:Form ID="SearchBar" runat="server" ShowHeader="false"
                    ShowBorder="false">
                    <Items>
                        <f:Panel ID="PanelSearch" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DropDownBox runat="server" ID="SearchProductType" EmptyText="请选择商品类型" DataControlID="SelectProductTypeControl_GridList" AutoShowClearIcon="true" OnClearIconClick="Search_ClearIconClick" EnableClearIconClickEvent="true" CssClass="marginr" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="false">
                                    <PopPanel>
                                        <f:UserControlConnector runat="server">
                                            <uc1:selectproducttype runat="server" id="SelectProductType" />
                                        </f:UserControlConnector>
                                    </PopPanel>
                                </f:DropDownBox>
                                <f:DropDownBox runat="server" ID="SearchBrand" EmptyText="请选择品牌" DataControlID="SelectBrandControl_GridList" AutoShowClearIcon="true" OnClearIconClick="Search_ClearIconClick" EnableClearIconClickEvent="true" CssClass="marginr" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="false">
                                    <PopPanel>
                                        <f:UserControlConnector runat="server">
                                            <uc1:selectbrand runat="server" id="SelectBrand" />
                                        </f:UserControlConnector>
                                    </PopPanel>
                                </f:DropDownBox>
                                <f:DropDownBox runat="server" ID="SearchDefaultSupplier" EmptyText="请选择默认供应商" DataControlID="SelectSupplierControl_GridList" AutoShowClearIcon="true" OnClearIconClick="Search_ClearIconClick" EnableClearIconClickEvent="true" CssClass="marginr" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="false">
                                    <PopPanel>
                                        <f:UserControlConnector runat="server">
                                            <uc1:selectsupplier runat="server" id="SelectDefaultSupplier" />
                                        </f:UserControlConnector>
                                    </PopPanel>
                                </f:DropDownBox>
                                <f:DropDownList ID="SearchProductUnit" runat="server" ShowLabel="false" CssClass="marginr">
                                </f:DropDownList>
                                <f:TwinTriggerBox ID="SearchKey" runat="server" ShowLabel="false" EmptyText="请输入检索关键词"
                                    Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="search_Key_Trigger2Click"
                                    OnTrigger1Click="search_Key_Trigger1Click" CssClass="marginr">
                                </f:TwinTriggerBox>
                                <f:Button ID="btnSearch" runat="server" Text="查询" CssClass="marginr">
                                </f:Button>
                                <f:Button ID="btnReset" runat="server" Type="Reset" Text="重置">
                                </f:Button>
                            </Items>
                        </f:Panel>
                    </Items>
                </f:Form>
                <f:Grid ID="GridList" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="true" DataKeyNames="Id" AllowSorting="false"
                    OnSort="GridList_Sort" SortField="ID" SortDirection="DESC" AllowPaging="true"
                    IsDatabasePaging="true" OnPreDataBound="GridList_PreDataBound" OnRowCommand="GridList_RowCommand"
                    OnPageIndexChange="GridList_PageIndexChange" OnRowDataBound="GridList_RowDataBound" EnableTextSelection="true">
                    <Toolbars>
                        <f:Toolbar ID="GridToolbar" runat="server">
                            <Items>
                                <f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
                                </f:Button>
                                <f:Button ID="btnSaveClose" Text="选择后关闭" runat="server" Icon="SystemSaveClose" OnClick="btnSaveClose_Click">
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />
                        </f:DropDownList>
                    </PageItems>
                    <Columns>
                        <f:RowNumberField />
                        <f:BoundField ColumnID="Name" DataField="Name" HeaderText="名称" Width="150px" />
                        <f:BoundField ColumnID="SN" DataField="SN" HeaderText="条码" Width="150px" />
                        <f:BoundField ColumnID="Code" DataField="Code" HeaderText="商品编号" Width="150px" />
                        <f:BoundField ColumnID="ShortName" DataField="ShortName" HeaderText="商品简称" Width="150px" />
                        <f:BoundField ColumnID="ProductType" DataField="ProductType.Name" HeaderText="商品类型" Width="150px" />
                        <f:BoundField ColumnID="Brand" DataField="Brand.Name" HeaderText="品牌" Width="150px" />
                        <f:BoundField ColumnID="Name" DataField="Name" HeaderText="商品全称" Width="150px" />
                        <f:BoundField ColumnID="DefaultSupplier" DataField="DefaultSupplier.Name" HeaderText="默认供应商" Width="150px" />
                        <f:BoundField ColumnID="ProductUnit" DataField="ProductUnit.Name" HeaderText="单位" Width="150px" />
                        <f:BoundField ColumnID="Level" DataField="Level" HeaderText="等级" Width="150px" />
                        <f:BoundField ColumnID="Specifications" DataField="Specifications" HeaderText="规格" Width="150px" />
                        <f:BoundField ColumnID="Model" DataField="Model" HeaderText="型号" Width="150px" />
                        <f:BoundField ColumnID="Weight" DataField="Weight" HeaderText="重量" Width="150px" />
                        <f:BoundField ColumnID="Unit" DataField="Unit" HeaderText="单位" Width="150px" />
                        <f:BoundField ColumnID="ImgUrl1" DataField="ImgUrl1" HeaderText="图片1" Width="150px" />
                        <f:BoundField ColumnID="ImgUrl2" DataField="ImgUrl2" HeaderText="图片2" Width="150px" />
                        <f:BoundField ColumnID="ImgUrl3" DataField="ImgUrl3" HeaderText="图片3" Width="150px" />
                        <f:BoundField ColumnID="ImgUrl4" DataField="ImgUrl4" HeaderText="图片4" Width="150px" />
                        <f:BoundField ColumnID="ImgUrl5" DataField="ImgUrl5" HeaderText="图片5" Width="150px" />
                        <f:BoundField ColumnID="Year" DataField="Year" HeaderText="年份" Width="150px" />
                        <f:BoundField ColumnID="MarketTime" DataField="MarketTime" HeaderText="上市时间" Width="150px" />
                        <f:BoundField ColumnID="Outline" DataField="Outline" HeaderText="明细概要" Width="150px" />
                        <f:BoundField ColumnID="Explain" DataField="Explain" HeaderText="产品说明" Width="150px" />
                        <f:BoundField ColumnID="TechnicalParameter" DataField="TechnicalParameter" HeaderText="技术参数" Width="150px" />
                        <f:BoundField ColumnID="CommonProblem" DataField="CommonProblem" HeaderText="常见问题" Width="150px" />
                        <f:BoundField ColumnID="Remark" DataField="Remark" HeaderText="备注" ExpandUnusedSpace="true" />
                        <f:BoundField ColumnID="MarkedPrice" DataField="MarkedPrice" HeaderText="标价" Width="150px" />
                        <f:BoundField ColumnID="DefaultCostPrice" DataField="DefaultCostPrice" HeaderText="默认成本价" Width="150px" />
                        <f:BoundField ColumnID="RetailPrice" DataField="RetailPrice" HeaderText="零售价" Width="150px" />
                        <f:BoundField ColumnID="VIPPrice1" DataField="VIPPrice1" HeaderText="VIP价1" Width="150px" />
                        <f:BoundField ColumnID="VIPPrice2" DataField="VIPPrice2" HeaderText="VIP价2" Width="150px" />
                        <f:BoundField ColumnID="VIPPrice3" DataField="VIPPrice3" HeaderText="VIP价3" Width="150px" />
                        <f:BoundField ColumnID="VIPPrice4" DataField="VIPPrice4" HeaderText="VIP价4" Width="150px" />
                        <f:BoundField ColumnID="TradePrice1" DataField="TradePrice1" HeaderText="批发价1" Width="150px" />
                        <f:BoundField ColumnID="TradePrice2" DataField="TradePrice2" HeaderText="批发价2" Width="150px" />
                        <f:BoundField ColumnID="TradePrice3" DataField="TradePrice3" HeaderText="批发价3" Width="150px" />
                        <f:BoundField ColumnID="TradePrice4" DataField="TradePrice4" HeaderText="批发价4" Width="150px" />
                        <f:BoundField ColumnID="TradePrice5" DataField="TradePrice5" HeaderText="批发价5" Width="150px" />
                        <f:BoundField ColumnID="TradePrice6" DataField="TradePrice6" HeaderText="批发价6" Width="150px" />
                        <f:BoundField ColumnID="TradePrice7" DataField="TradePrice7" HeaderText="批发价7" Width="150px" />
                        <f:BoundField ColumnID="TradePrice8" DataField="TradePrice8" HeaderText="批发价8" Width="150px" />
                        <f:BoundField ColumnID="FocusTracking" DataField="FocusTracking" HeaderText="重点跟踪" Width="150px" />
                        <f:BoundField ColumnID="IsNew" DataField="IsNew" HeaderText="新品" Width="150px" />
                        <f:BoundField ColumnID="EasyStock" DataField="EasyStock" HeaderText="易断货商品" Width="150px" />
                        <f:BoundField ColumnID="IsOil" DataField="IsOil" HeaderText="售油机用油" Width="150px" />
                        <f:BoundField ColumnID="IsOilSales" DataField="IsOilSales" HeaderText="售油机" Width="150px" />
                        <f:BoundField ColumnID="ExchangeIntegral" DataField="ExchangeIntegral" HeaderText="兑换积分" Width="150px" />
                        <f:BoundField ColumnID="FrontDesk" DataField="FrontDesk" HeaderText="前台赠送" Width="150px" />
                        <f:BoundField ColumnID="NoIntegral" DataField="NoIntegral" HeaderText="不积分" Width="150px" />
                        <f:BoundField ColumnID="NoDiscount" DataField="NoDiscount" HeaderText="特价商品不打折" Width="150px" />
                        <f:BoundField ColumnID="Enable" DataField="Enable" HeaderText="停用" Width="150px" />
                        <f:BoundField ColumnID="ManageSerialNum" DataField="ManageSerialNum" HeaderText="管理序列号" Width="150px" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
